radiusFromDiameter

fun radiusFromDiameter(diameter: Float, unitType: UnitType, resources: Resources): Float

EN Converts a diameter value in a specific physical unit to radius in Dp.

Return

The radius in Dp. PT Converte um valor de diâmetro em uma unidade física específica para raio em Dp.

O raio em Dp.

Parameters

diameter

O valor do diâmetro.

unitType

O tipo de unidade (mm, cm, inch).

resources

Os Resources do Context.